package com.tau.iplayer.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class TrackData {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String userID;
	@Persistent
	private String title;
	@Persistent
	private String artist;
	@Persistent
	private int duration;
	@Persistent
	private String playlistName;
	@Persistent
	private String videoID;
	@Persistent
	private String thumbnailURL;
	@Persistent
	private int rating;

	public TrackData(String userID, String title, String artist, int duration, String playlistName,
			String videoID, String thumbnailURL, int rating) {
		this.userID = userID;
		this.title = title;
		this.artist = artist;
		this.duration = duration;
		this.playlistName = playlistName;
		this.videoID = videoID;
		this.thumbnailURL = thumbnailURL;
		this.rating = rating;
	}

	/**
	 * @return the title
	 */
	public String getTitle() {
		return title;
	}

	/**
	 * @return the artist
	 */
	public String getArtist() {
		return artist;
	}

	/**
	 * @return the duration
	 */
	public int getDuration() {
		return duration;
	}

	/**
	 * @return the playlist
	 */
	public String getPlaylistName() {
		return playlistName;
	}

	/**
	 * @return the id
	 */
	public String getVideoID() {
		return videoID;
	}

	/**
	 * @return the thumbnailURL
	 */
	public String getThumbnailURL() {
		return thumbnailURL;
	}

	/**
	 * @return the rating
	 */
	public int getRating() {
		return rating;
	}

	/**
	 * @return the user
	 */
	public String getUserID() {
		return userID;
	}
	
	/**
	 * @param userID the user to set
	 */
	public void setUserID(String userID) {
		this.userID = userID;
	}
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param title the title to set
	 */
	public void setTitle(String title) {
		this.title = title;
	}

	/**
	 * @param artist the artist to set
	 */
	public void setArtist(String artist) {
		this.artist = artist;
	}

	/**
	 * @param rating the rating to set
	 */
	public void setRating(int rating) {
		this.rating = rating;
	}

	/**
	 * @param playlistName the playlistName to set
	 */
	public void setPlaylistName(String playlistName) {
		this.playlistName = playlistName;
	}
	
	
}
